//==============================================================================
// Copyright (c) 2008-2013 Niall Ryan. All Rights Reserved.
//==============================================================================

#include <gtest/gtest.h>

#include "hydra/thread/Thread.h"

using namespace Hydra;


static int g_threadTest;
static void Func1()	{ g_threadTest = 20; }

TEST(ThreadTest, Stuff)
{
	g_threadTest = 10;
	Thread t1(&Func1);
	EXPECT_TRUE(g_threadTest==10);
	t1.Start();
	t1.Join();
	EXPECT_TRUE(g_threadTest==20);
}
